var ClubQuit = Item.extend({
    _ccsFileName: res.ClubQuit_json,
    _clubId: null,
    initItem: function (clubId) {
        this._clubId = clubId;
        var clubInfo = ClubDataManager.getClubData(this._clubId);
        this._nodeList['txt_01'].setString('是否 退出，【' + clubInfo.name + '】亲友圈');
    },
    _initClickListeners: function () {
        this._clickListeners = {
            'btn_quit': '_handleQuit',
        };
    },
    _handleQuit: function () {
        var self = this;
        showMessageBox('确定退出该亲友圈', function () {
            var name = gameData.nickname;
            name = name.replace('%', '').replace('\'', '').replace('"', '').replace('\\', '');
            network.send(2103, {
                cmd: ClubMsgCode.LeaveClub,
                club_id: self._clubId,
                uid: gameData.uid,
                name: name,
                head: gameData.headimgurl
            });
        });
    }
});